<?php
class CompanyCategory extends AppModel {
	var $name = 'CompanyCategory';
	var $useTable = 'company_category_inner';
	var $belongsTo = array('SysParams' =>  
                            array('className'  => 'SysParams', 
                                  'conditions' => "\"SysParams\".deleted is null AND \"SysParams\".kbn='tema_id'",  
                                  'order'      => '',  
                                  'foreignKey' => 'category_id'  
                            )       
                      );
    /**
     * @author lizeqiu
     * @desc company-category验证
     * */                   
    function delByCompanyid($companyId){
    	$this->execute("update company_category_inner set deleted=now() where company_id=$companyId;");
    }                  	
}
?>
